import Vue from 'vue'
import VueRouter from 'vue-router'
import GenerateModel from '../views/GenerateModel'
import GenerateSchema from '@/views/GenerateSchema'
import GenerateCRUD from '@/views/GenerateCRUD'
import GenerateAPI from '@/views/GenerateAPI'
import MinIOUpload from '@/views/MinIOUpload'

Vue.use(VueRouter)

const routes = [
  {
    path: '/generateModel',
    name: '生成模型对象',
    component: GenerateModel
  },
  {
    path: '/generateSchema',
    name: '生成Schema',
    component: GenerateSchema
  },
  {
    path: '/generateCRUD',
    name: '生成CRUD',
    component: GenerateCRUD
  },
  {
    path: '/generateAPI',
    name: '生成API',
    component: GenerateAPI
  },
  {
    path: '/MinIOUpload',
    name: 'minio 上传示例',
    component: MinIOUpload
  }
]

const router = new VueRouter({
  routes
})

export default router
